package com.cj.dao;
import com.cj.po.Dormitory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DormitoryDao {
    /**
     * 进行分页查询
     */

    //获取总条数
    public Integer totalCount(@Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding")String d_dormbuilding,
                              @Param("a_name")String a_name);

    //获取用户列表
    public  List<Dormitory> getDormitoryList(@Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding") String d_dormbuilding,
                                        @Param("a_name") String a_name, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize) ;



    public List<Dormitory> getAll();

    int addDormitory(Dormitory dormitory);

    int deleteDormitory(Integer d_id);

    int updateDormitory(Dormitory dormitory);

    Dormitory findDormitoryById(Integer d_id);
}
